package com.chat.view;

import com.chat.utils.MouseFollow;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        FXMLLoader fxmlLoader=new FXMLLoader();
        fxmlLoader.setLocation(getClass().getResource("login.fxml"));
        Parent root=fxmlLoader.load();
        Scene scene=new Scene(root,600,400);
        primaryStage.initStyle(StageStyle.TRANSPARENT);
        MouseFollow in=new MouseFollow(root,primaryStage);
        primaryStage.setTitle("登录");
        primaryStage.setScene(scene);
        primaryStage.show();
    }
    public static void main(String[] args) {
        launch(args);
    }
}
